using Nop.Core.Domain.Common;

namespace Nop.Data.Mapping.Common
{
    public partial class FlowStepsMap : NopEntityTypeConfiguration<FlowSteps>
    {
        public FlowStepsMap()
        {
            this.ToTable("FlowSteps");
            this.HasKey(c => c.Id);
            
            this.Property(p => p.Name).IsRequired().HasMaxLength(50);

            this.HasMany(c => c.Customers)
                .WithMany()
                .Map(m => m.ToTable("FlowSteps_Customer_Mapping"));
        }
    }
}
